﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F27 RID: 3879
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnterRoomScRsp : IMessage<RogueMagicEnterRoomScRsp>, IMessage, IEquatable<RogueMagicEnterRoomScRsp>, IDeepCloneable<RogueMagicEnterRoomScRsp>, IBufferMessage
	{
		// Token: 0x17003147 RID: 12615
		// (get) Token: 0x0600AE0C RID: 44556 RVA: 0x001D6BEB File Offset: 0x001D4DEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnterRoomScRsp> Parser
		{
			get
			{
				return RogueMagicEnterRoomScRsp._parser;
			}
		}

		// Token: 0x17003148 RID: 12616
		// (get) Token: 0x0600AE0D RID: 44557 RVA: 0x001D6BF2 File Offset: 0x001D4DF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnterRoomScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003149 RID: 12617
		// (get) Token: 0x0600AE0E RID: 44558 RVA: 0x001D6C04 File Offset: 0x001D4E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnterRoomScRsp.Descriptor;
			}
		}

		// Token: 0x0600AE0F RID: 44559 RVA: 0x001D6C0B File Offset: 0x001D4E0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomScRsp()
		{
		}

		// Token: 0x0600AE10 RID: 44560 RVA: 0x001D6C14 File Offset: 0x001D4E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomScRsp(RogueMagicEnterRoomScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueTournCurSceneInfo_ = ((other.rogueTournCurSceneInfo_ != null) ? other.rogueTournCurSceneInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AE11 RID: 44561 RVA: 0x001D6C60 File Offset: 0x001D4E60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomScRsp Clone()
		{
			return new RogueMagicEnterRoomScRsp(this);
		}

		// Token: 0x1700314A RID: 12618
		// (get) Token: 0x0600AE12 RID: 44562 RVA: 0x001D6C68 File Offset: 0x001D4E68
		// (set) Token: 0x0600AE13 RID: 44563 RVA: 0x001D6C70 File Offset: 0x001D4E70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700314B RID: 12619
		// (get) Token: 0x0600AE14 RID: 44564 RVA: 0x001D6C79 File Offset: 0x001D4E79
		// (set) Token: 0x0600AE15 RID: 44565 RVA: 0x001D6C81 File Offset: 0x001D4E81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo RogueTournCurSceneInfo
		{
			get
			{
				return this.rogueTournCurSceneInfo_;
			}
			set
			{
				this.rogueTournCurSceneInfo_ = value;
			}
		}

		// Token: 0x0600AE16 RID: 44566 RVA: 0x001D6C8A File Offset: 0x001D4E8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnterRoomScRsp);
		}

		// Token: 0x0600AE17 RID: 44567 RVA: 0x001D6C98 File Offset: 0x001D4E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnterRoomScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueTournCurSceneInfo, other.RogueTournCurSceneInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AE18 RID: 44568 RVA: 0x001D6CE8 File Offset: 0x001D4EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num ^= this.RogueTournCurSceneInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AE19 RID: 44569 RVA: 0x001D6D3D File Offset: 0x001D4F3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AE1A RID: 44570 RVA: 0x001D6D45 File Offset: 0x001D4F45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AE1B RID: 44571 RVA: 0x001D6D50 File Offset: 0x001D4F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueTournCurSceneInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.RogueTournCurSceneInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AE1C RID: 44572 RVA: 0x001D6DAC File Offset: 0x001D4FAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurSceneInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AE1D RID: 44573 RVA: 0x001D6E04 File Offset: 0x001D5004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnterRoomScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueTournCurSceneInfo_ != null)
			{
				if (this.rogueTournCurSceneInfo_ == null)
				{
					this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
				}
				this.RogueTournCurSceneInfo.MergeFrom(other.RogueTournCurSceneInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AE1E RID: 44574 RVA: 0x001D6E6C File Offset: 0x001D506C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AE1F RID: 44575 RVA: 0x001D6E78 File Offset: 0x001D5078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueTournCurSceneInfo_ == null)
					{
						this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
					}
					input.ReadMessage(this.RogueTournCurSceneInfo);
				}
			}
		}

		// Token: 0x0400468E RID: 18062
		private static readonly MessageParser<RogueMagicEnterRoomScRsp> _parser = new MessageParser<RogueMagicEnterRoomScRsp>(() => new RogueMagicEnterRoomScRsp());

		// Token: 0x0400468F RID: 18063
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004690 RID: 18064
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04004691 RID: 18065
		private uint retcode_;

		// Token: 0x04004692 RID: 18066
		public const int RogueTournCurSceneInfoFieldNumber = 1;

		// Token: 0x04004693 RID: 18067
		private RogueMagicCurSceneInfo rogueTournCurSceneInfo_;
	}
}
